import React from 'react';
import {
    BrowserRouter as Router,
    Routes,
    Route, Navigate
} from "react-router-dom";
function App(props) {
    return (
        <div>
            <Routes>
                <Route path={"/"} element={<h3>首页</h3>}></Route>
                <Route path={"/goodsList"} element={<h3>商品列表页</h3>}></Route>
                <Route path={"/newsList"} element={<h3>新闻列表页</h3>}></Route>
                <Route path={"/my"} element={<h3>我的个人中心</h3>}></Route>
                <Route path={"/home"} element={<Navigate to={'/'}/>}></Route>
            </Routes>
        </div>
    );
}

export default App;